from django.contrib import admin
from django.urls import path
from . import views

urlpatterns = [
    path('', views.home_view, name='home_view'),
    path('register/', views.register, name='register'),
    path('login/', views.user_login, name='login'),
    path('logout/', views.user_logout, name='logout'),
    path('product_list/', views.product_list, name='product_list'),
    path('product/list/', views.product_list, name='product_list'),
    path('product/add/', views.add_product, name='add_product'),
    path('product/<int:product_id>/', views.product_detail, name='product_detail'),
    path('privacy_policy/', views.privacy_policy, name='privacy_policy'),
    path('user_agreement/', views.user_agreement, name='user_agreement'),
    path('agreement/', views.user_agreement, name='user_agreement'),
    path('alipay/pay/<int:price>/', views.alipay_pay, name='alipay_pay'),
    path('alipay/notify/', views.alipay_notify, name='alipay_notify'),
    path('alipay/return/', views.alipay_return, name='alipay_return'),
    path('search/', views.search, name='search'),
]
